<?php
session_start();
include_once 'core/function.login.php';
include_once 'core/function.general.php';
$login = new iraLogin();
if (!isset($_SESSION['userID']) && !isset($_SESSION['userName']) && !isset($_SESSION['userPass'])) {
    if (array_key_exists('tryCheck', $_POST)) {
        $login->loginFormAction();
    } else {
        $login->showLoginForm();
    }
} else {
    checkIfLoggedIn();
}
?>
